xen/arm32: Use alternative to skip the check of pending serrors
authorWei Chen <Wei.Chen@arm.com>
Wed, 5 Apr 2017 09:09:12 +0000 (17:09 +0800)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 5 Apr 2017 19:12:33 +0000 (12:12 -0700)
commit2f08a16b043822ec9011397acf8d2a63e6802c6c
tree5e0f1ad5b1dd474577c1dd87f6f564b457f7587c
parenta61573f4f17a09de1f8ab761235842531b957337
xen/arm32: Use alternative to skip the check of pending serrors

We have provided an option to administrator to determine how to
handle the SErrors. In order to skip the check of pending SError,
in conventional way, we have to read the option every time before
we try to check the pending SError. This will add overhead to check
the option at every trap.

The ARM32 supports the alternative patching feature. We can use an
ALTERNATIVE to avoid checking option at every trap. We added a new
cpufeature named "SKIP_SYNCHRONIZE_SERROR_ENTRY_EXIT". This feature
will be enabled when the option is not diverse.

Signed-off-by: Wei Chen <Wei.Chen@arm.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/arm32/entry.S